#ifndef MAINWINDOW_HH
#define MAINWINDOW_HH

#include <QtGui>

#include "editorwidget.hh"

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = 0);
    ~MainWindow();

private slots:
    void updateStatusBar(void);
    void openFile(void);
    void save(void);
    void saveAs(void);
    void documentWasModified();
    void showSettingsDialog();

private:
    void createMenus();
    void saveFile(const QString& fileName);
    void setCurrentFile(const QString& fileName);

    QString m_currentFile;
    QStatusBar* m_statusBar;
    QMenu* m_fileMenu;
    QMenu* m_editMenu;


    EditorWidget* m_editorWidget;
};

#endif // MAINWINDOW_HH
